package com.vichat.res.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2019-09-27 18:30:10.907
 */
@Entity
@Table(name = "res_relat",catalog = "resdb")
public class ResRelat implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "res_relat";

    /** */
	public static final String ALIAS_RELAT_ID = "relat_id";
    /** */
	public static final String ALIAS_OBJ_ID = "obj_id";
    /** */
	public static final String ALIAS_RES_ID = "res_id";
    /**1 谈话录音、执法取证 2 访客入监 3 访客离监 */
	public static final String ALIAS_OBJ_TYPE = "obj_type";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "relat_id", unique = true, nullable = false)
    public java.lang.Long relatId;
  
 	@Column(name = "obj_id")
    public java.lang.Long objId = 0l;
  
 	@Column(name = "res_id")
    public java.lang.Long resId;
  
 	@Column(name = "obj_type")
    public java.lang.Long objType;
  





	public java.lang.Long getRelatId() {
		return this.relatId;
	}
	
	public void setRelatId(java.lang.Long value) {
		this.relatId = value;
	}

	public java.lang.Long getObjId() {
		return this.objId;
	}
	
	public void setObjId(java.lang.Long value) {
		this.objId = value;
	}

	public java.lang.Long getResId() {
		return this.resId;
	}
	
	public void setResId(java.lang.Long value) {
		this.resId = value;
	}

	public java.lang.Long getObjType() {
		return this.objType;
	}
	
	public void setObjType(java.lang.Long value) {
		this.objType = value;
	}


	
	public ResRelat() {
	}
	
	public ResRelat(boolean qryflag) {
	    if(qryflag){
	    		this.relatId = null;
				this.objId = null;
				this.resId = null;
				this.objType = null;
			    }
	}


	public ResRelat(
	    java.lang.Long inRelatId,
	    java.lang.Long inObjId,
	    java.lang.Long inResId,
		java.lang.Long inObjType
	 ) {
		super();
				this.relatId = inRelatId;
				this.objId = inObjId;
				this.resId = inResId;
				this.objType = inObjType;
			}





}

